package com.ruoyi.project.jiaqin.newscomment.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 新闻评论对象 news_comment
 *
 * @author admin
 * @date 2020-12-15
 */
public class NewsComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 新闻ID */
    @Excel(name = "新闻ID")
    private String newsId;

    @Excel(name = "新闻标题")
    private String title;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    private String userName;//用户昵称
    private String userIcon;//用户头像

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论时间 */
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentAt;

    /** 评论状态(0显示,1隐藏) */
    @Excel(name = "评论状态(0显示,1隐藏)")
    private Integer status;

    private Integer replyNum;

    /** 是否点赞 0-否 1-是 */
    private Integer isLikers;

    /** 点赞数 */
    private Integer likersNum;

    /** 是否是企业：0-否 1-是 */
    private Integer isCompany;
    /** 企业或个人ID */
    private String memberCompanyId;

    public String getMemberCompanyId() {
        return memberCompanyId;
    }

    public void setMemberCompanyId(String memberCompanyId) {
        this.memberCompanyId = memberCompanyId;
    }

    public Integer getIsCompany() {
        return isCompany;
    }
    public void setIsCompany(Integer isCompany) {
        this.isCompany = isCompany;
    }

    public Integer getLikersNum() {
        return likersNum;
    }

    public void setLikersNum(Integer likersNum) {
        this.likersNum = likersNum;
    }

    public Integer getIsLikers() {
        return isLikers;
    }

    public void setIsLikers(Integer isLikers) {
        this.isLikers = isLikers;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getReplyNum() {
        return replyNum;
    }

    public void setReplyNum(Integer replyNum) {
        this.replyNum = replyNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserIcon() {
        return userIcon;
    }

    public void setUserIcon(String userIcon) {
        this.userIcon = userIcon;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setNewsId(String newsId)
    {
        this.newsId = newsId;
    }

    public String getNewsId()
    {
        return newsId;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setCommentAt(Date commentAt)
    {
        this.commentAt = commentAt;
    }

    public Date getCommentAt()
    {
        return commentAt;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("newsId", getNewsId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("commentAt", getCommentAt())
            .append("status", getStatus())
            .toString();
    }
}
